package com.ruoyi.system.domain;

import java.time.LocalDate;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息推送对象 sys_push_record
 *
 * @author ruoyi
 * @date 2025-08-31
 */
@Data
public class SysPushRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using = ToStringSerializer.class)
    /** 推送记录ID */
    private Long id;

    /** 推送用户ID */
    @Excel(name = "推送用户ID")
    private Long pushUserId;

    /** 接收用户ID */
    @Excel(name = "接收用户ID")
    private Long receiverUserId;

    /** 推送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "推送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date pushTime;

    /** 消息标题 */
    @Excel(name = "消息标题")
    private String title;

    /** 消息内容 */
    @Excel(name = "消息内容")
    private String msg;

    /** 文件URLs，多个用逗号分隔 */
    @Excel(name = "文件URLs，多个用逗号分隔")
    private String fileUrls;

    private String batchNo;

    private String noticeLabel;

    private String category;

    private Integer status;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
}
